<?php

	error_reporting(E_STRICT);
	date_default_timezone_set('America/Argentina/Cordoba');
	
	require_once('phpmailer/class.phpmailer.php');
	
	$mail             = new PHPMailer();
	
		
	$mail->IsSMTP(); 													// telling the class to use SMTP
	$mail->SMTPDebug  = 2;                     				// enables SMTP debug information (for testing)
                                           						// 1 = errors and messages
                                          						// 2 = messages only
	
	$mail->SMTPAuth   = true;                  				// enable SMTP authentication
	$mail->SMTPSecure = "ssl";                 				// sets the prefix to the servier
	$mail->Host       = "smtp.gmail.com";      				// sets GMAIL as the SMTP server
	$mail->Port       = 465;                   				// set the SMTP port for the GMAIL server
	$mail->Username   = "delivery351@gmail.com";  			// GMAIL username
	$mail->Password   = "EmiPato2013";            			// GMAIL password

	$mail->SetFrom('info@delivery351.com', 'Delivery351');


	$mail->Subject    = "Delivery351";

	$mail->AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test

	$mail->MsgHTML("Prueba");

	$address = "patricioa183@hotmail.com";
	$mail->AddAddress($address, "PAtO Aguirre");


	if(!$mail->Send()) {
  		echo "Mailer Error: " . $mail->ErrorInfo;
	} else {
  		echo "Message sent!";
	}
?>